package com.cityp.mapper;

import com.cityp.bean.AllUser;
import com.cityp.bean.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.sql.Date;
import java.sql.Timestamp;
import java.util.List;

@Mapper
@Repository
public interface UserListMapper {
    List<User> getAll();
    int updateUser(@Param("user") User user);
    int deleteUser(@Param("id")String id,@Param("state")int state);
    int changePassword(@Param("pass")String pass,@Param("id")String id);
    List<User> getFreeze();
    void updateUserLoginLog(@Param("userid") String userid,@Param("username") String username,@Param("userIP") String userIP,@Param("usertime") Timestamp usertime);

}
